<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>员工统计</title>
    <link rel="stylesheet" href="../../../../plugins/layui/css/layui.css">
    <link rel="stylesheet" href="../../css/base.css">
    <link rel="stylesheet" href="../../css/styleReset.css">

<!--    <link rel="stylesheet" href="../../css/recyclebin.css">-->
</head>
<body class="staffReport-body">
<div class="staffReport">
    <!-- 内容主体区域 -->
    <div class="content-box">
        <!--塞内容位置-->

        <!--内容部分 start-->
        <div class="content-right-part">
            <div class="search-bar">
                <form class="form-inline">
                    <div class="form-group">
                        <label for="organizeName">组织名称：</label>
                        <input type="text" class="form-control" id="organizeName" placeholder="南京政务">
                    </div>
                    <div class="form-group">
                        <label for="staff">员工：</label>
                        <input type="text" class="form-control" id="staff" placeholder="姓名/工号">
                    </div>
                    <a href="javascript:void(0)">
                        <button type="button" class="btn btn-primary form-inline-search" id="staffBtn">查询</button>
                    </a>
                </form>

            </div>
            <div class="card card-content recyclebin-content" id="staffContent">
                <div class="text-right" style="padding: 15px 0">
                    <a href="#"><button type="button" class="btn btn-primary export-btn"><img src="../../image/export.png" alt="">导出excel</button></a>
                </div>
                <div class="data-list">
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>员工姓名</th>
                            <th>工号</th>
                            <th>所属机构</th>
                            <th>床架知识</th>
                            <th>更新知识</th>
                            <th>点击量</th>
                            <th>评论数</th>
                        </tr>
                        </thead>
                        <tbody id="staffList">
                        <tr data-id="11">
                            <td>1</td>
                            <td>张东阳</td>
                            <td>D483924</td>
                            <td>研发中心</td>
                            <td>268</td>
                            <td>129</td>
                            <td>5379</td>
                            <td>13</td>
                        </tr>
                        <tr data-id="12">
                            <td>2</td>
                            <td>张东阳</td>
                            <td>D483924</td>
                            <td>研发中心</td>
                            <td>268</td>
                            <td>129</td>
                            <td>5379</td>
                            <td>13</td>
                        </tr>
                        <tr data-id="13">
                            <td>3</td>
                            <td>张东阳</td>
                            <td>D483924</td>
                            <td>研发中心</td>
                            <td>268</td>
                            <td>129</td>
                            <td>5379</td>
                            <td>13</td>
                        </tr>
                        <tr data-id="14">
                            <td>4</td>
                            <td>张东阳</td>
                            <td>D483924</td>
                            <td>研发中心</td>
                            <td>268</td>
                            <td>129</td>
                            <td>5379</td>
                            <td>13</td>
                        </tr>
                        <tr data-id="15">
                            <td>5</td>
                            <td>张东阳</td>
                            <td>D483924</td>
                            <td>研发中心</td>
                            <td>268</td>
                            <td>129</td>
                            <td>5379</td>
                            <td>13</td>
                        </tr>
                        <tr data-id="16">
                            <td>6</td>
                            <td>张东阳</td>
                            <td>D483924</td>
                            <td>研发中心</td>
                            <td>268</td>
                            <td>129</td>
                            <td>5379</td>
                            <td>13</td>
                        </tr>
                        <tr data-id="17">
                            <td>7</td>
                            <td>张东阳</td>
                            <td>D483924</td>
                            <td>研发中心</td>
                            <td>268</td>
                            <td>129</td>
                            <td>5379</td>
                            <td>13</td>
                        </tr>
                        <tr data-id="18">
                            <td>8</td>
                            <td>张东阳</td>
                            <td>D483924</td>
                            <td>研发中心</td>
                            <td>268</td>
                            <td>129</td>
                            <td>5379</td>
                            <td>13</td>
                        </tr>
                        <tr data-id="19">
                            <td>9</td>
                            <td>张东阳</td>
                            <td>D483924</td>
                            <td>研发中心</td>
                            <td>268</td>
                            <td>129</td>
                            <td>5379</td>
                            <td>13</td>
                        </tr>
                        <tr data-id="20">
                            <td>10</td>
                            <td>张东阳</td>
                            <td>D483924</td>
                            <td>研发中心</td>
                            <td>268</td>
                            <td>129</td>
                            <td>5379</td>
                            <td>13</td>
                        </tr>
                        </tbody>
                    </table>

                    <!--分页功能 start-->
                    <div id="staffPage" class="page-box">

                    </div>
                    <!--分页功能 end-->
                </div>
            </div>
        </div>
        <!--内容部分 end-->
        <div class="clearfix"></div>
    </div>
</div>

<script src="../../../../plugins/jquery/jquery-1.12.4.js"></script>
<script src="../../../../plugins/bootstrap.js"></script>
<script src="../../../../plugins/layui/layui.js"></script>
<script>
    layui.use(['tree', 'layer', 'laypage', 'element'], function () {
        var layer = layui.layer
            , element = layui.element
            , laypage = layui.laypage
            , $ = layui.jquery;
        /**
         * 知识库管理页面
         */

        // 知识库管理分页
        laypage.render({
            elem: 'staffPage'
            , count: 100
            // ,first: false
            // ,last: false
            // ,prev: '<em><</em>'
            // ,next: '<em>></em>'
            , jump: function (obj) {
                console.log(obj)
                // 当前页点击
                var currentPage = obj.curr;
                var resultData = [
                    {
                        id: 1
                        , name: '知识库1'
                        , creater: '张东阳'
                        , createrNo: 'D483924'
                        , organ: '研发中心'
                        , createNo: 138
                        , updateNo: 128
                        , clickNo: 5739
                        , discussNo: 13
                    }
                    ,{
                        id: 2
                        , name: '知识库1'
                        , creater: '张东阳'
                        , createrNo: 'D483924'
                        , organ: '研发中心'
                        , createNo: 138
                        , updateNo: 128
                        , clickNo: 5739
                        , discussNo: 13
                    }
                    ,{
                        id: 3
                        , name: '知识库1'
                        , creater: '张东阳'
                        , createrNo: 'D483924'
                        , organ: '研发中心'
                        , createNo: 138
                        , updateNo: 128
                        , clickNo: 5739
                        , discussNo: 13
                    }
                    ,{
                        id: 4
                        , name: '知识库1'
                        , creater: '张东阳'
                        , createrNo: 'D483924'
                        , organ: '研发中心'
                        , createNo: 138
                        , updateNo: 128
                        , clickNo: 5739
                        , discussNo: 13
                    }
                    ,{
                        id: 5
                        , name: '知识库1'
                        , creater: '张东阳'
                        , createrNo: 'D483924'
                        , organ: '研发中心'
                        , createNo: 138
                        , updateNo: 128
                        , clickNo: 5739
                        , discussNo: 13
                    }
                    ,{
                        id: 6
                        , name: '知识库1'
                        , creater: '张东阳'
                        , createrNo: 'D483924'
                        , organ: '研发中心'
                        , createNo: 138
                        , updateNo: 128
                        , clickNo: 5739
                        , discussNo: 13
                    }
                    ,{
                        id: 7
                        , name: '知识库1'
                        , creater: '张东阳'
                        , createrNo: 'D483924'
                         , organ: '研发中心'
                        , createNo: 138
                        , updateNo: 128
                        , clickNo: 5739
                        , discussNo: 13
                    }
                    ,{
                        id: 8
                        , name: '知识库1'
                        , creater: '张东阳'
                        , createrNo: 'D483924'
                         , organ: '研发中心'
                        , createNo: 138
                        , updateNo: 128
                        , clickNo: 5739
                        , discussNo: 13
                    }
                    ,{
                        id: 9
                        , name: '知识库1'
                        , creater: '张东阳'
                        , createrNo: 'D483924'
                         , organ: '研发中心'
                        , createNo: 138
                        , updateNo: 128
                        , clickNo: 5739
                        , discussNo: 13
                    }
                    ,{
                        id: 10
                        , name: '知识库1'
                        , creater: '张东阳'
                        , createrNo: 'D483924'
                         , organ: '研发中心'
                        , createNo: 138
                        , updateNo: 128
                        , clickNo: 5739
                        , discussNo: 13
                    }
                ]
                var resultItemsTemp = ''
                for (var i = 0; i < resultData.length; i++) {
                    resultItemsTemp += '<tr data-id="' + resultData[i].id + '">\n' +
                        '  <td>' + resultData[i].id + '</td>\n' +
                        '  <td>' + resultData[i].creater + '</td>\n' +
                        '  <td>' + resultData[i].createrNo + '</td>\n' +
                        '  <td>' + resultData[i].organ + '</td>\n' +
                        '  <td>' + resultData[i].createNo + '</td>\n' +
                        '  <td>' + resultData[i].updateNo + '</td>\n' +
                        '  <td>' + resultData[i].clickNo + '</td>\n' +
                        '  <td>' + resultData[i].discussNo + '</td>\n' +
                        '  </tr>'
                }
                $("#staffList").html(resultItemsTemp)
            }
        });
        $("#staffBtn").on("click",function(){
            layer.msg("您点击了查询")
        })
    });
</script>
</body>
</html>
